# 指定基础镜像
FROM openjdk:8
VOLUME /tmp
# 暴露容器端口
EXPOSE 8415
ADD ./market-delivery-0.0.1-SNAPSHOT.jar market-delivery.jar
ARG profile
ENV TZ=Asia/Shanghai
#ADD ./deploy/run.$profile.sh run.sh
#ENTRYPOINT ["./run.sh"]
ENTRYPOINT ["java","-jar","/market-delivery.jar"]
## 创建文件夹并更改权限
#RUN mkdir /home/y_cloud && chmod -R 777 home/y_cloud
## 拷贝项目jar包到指定目录
#COPY build/libs/testdocker-1.0-SNAPSHOT.jar /home/y_cloud
## 暴露容器端口
#EXPOSE 8415
## 执行命令
#ENTRYPOINT ["java","-jar","/home/y_cloud/testdocker-1.0-SNAPSHOT.jar"]